<template>
  <section class="section timeline-section">
    <div class="container">
      <h2 class="section-title">发展历程</h2>
      <p class="section-desc">见证我们的成长与蜕变</p>
      
      <div class="timeline">
        <div class="timeline-item">
          <div class="timeline-date">2018</div>
          <div class="timeline-dot"></div>
          <div class="timeline-desc">公司成立，专注于人工智能技术研发</div>
        </div>
        
        <div class="timeline-item">
          <div class="timeline-date">2019</div>
          <div class="timeline-dot"></div>
          <div class="timeline-desc">发布首款智能产品，获得市场认可</div>
        </div>
        
        <div class="timeline-item">
          <div class="timeline-date">2020</div>
          <div class="timeline-dot"></div>
          <div class="timeline-desc">完成A轮融资，扩大研发团队规模</div>
        </div>
        
        <div class="timeline-item">
          <div class="timeline-date">2021</div>
          <div class="timeline-dot"></div>
          <div class="timeline-desc">推出云计算服务平台，服务全球客户</div>
        </div>
        
        <div class="timeline-item">
          <div class="timeline-date">2022</div>
          <div class="timeline-dot"></div>
          <div class="timeline-desc">建设新的研发中心，推动技术创新</div>
        </div>
      </div>
    </div>
  </section>
</template>

<script>
export default {
  name: 'Timeline'
}
</script>

<style scoped>
.timeline-section {
  background: #f9f9f9;
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #1a73e8;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-date {
  position: absolute;
  width: 100px;
  background: #1a73e8;
  color: white;
  text-align: center;
  padding: 8px 15px;
  border-radius: 20px;
  left: 50%;
  margin-left: -50px;
  top: -15px;
  font-weight: bold;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  left: 50%;
  margin-left: -8px;
  top: 25px;
}

.timeline-desc {
  padding: 30px;
  background: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 42%;
}

.timeline-item:nth-child(odd) .timeline-desc {
  left: 6%;
}

.timeline-item:nth-child(even) .timeline-desc {
  left: 52%;
}
</style>